﻿<?php
require('conn.php');
require('functions.php');
require('session.php');
//print_r($session);

?>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<title>个人累计收益 - <?php echo $config['sitename']?></title>
<meta name="keywords" content="<?php echo $config['sitename']?>,个人收益" />
<meta name="description" content="<?php echo $config['sitename']?>个人累计收益明细。">
<link href="css1/base.css?vew=20160106" rel="stylesheet" type="text/css" />
<link href="css1/header.css" rel="stylesheet" type="text/css" />
<link href="css1/weiUI.css?1" rel="stylesheet" type="text/css" />
<link href="css1/record.css" rel="stylesheet" type="text/css" />
<script type=text/javascript > var app="/user" </script>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type=text/javascript src="js1/jquery.common.js"></script>
</head> 
<body>
<div id="content">
 <?php include('header.php');?>
<script>
	(function () {
		var menustate = document.getElementById('g-menustate');
		menustate.addEventListener("click", function (e) {
			if (menustate.checked) {
				$('#g-menustate').addClass('g-noscroll')
			}else {
				$('#g-menustate').removeClass('g-noscroll')
			}
		});
	})();
</script><div class="l-container">
	<a class="cp-header" href="javascript:">
	<img src="https://s1.lantouzi.com/img/cashPlan/cashplan_03.jpg" width="100%">
	<h2>分享赚 | 能赚钱  好赚钱</h2>
	<p class="info">分享创造价值，分享收获快乐</p>
	<!--<p><i class="iconfont">&#xe605;</i> 说明</p>-->
</a>	<div class="cp-cash-option clearfix">
		<i class="iconfont">&#xe605;</i>
		<span>您的朋友圈也能赚钱<br/><i>收益更高、急速到账</i></span>
		<a class="g-btn g-btn-medium-major" href="list.php?uid=<?php echo $session['id']?>">我要赚钱</a>
	</div>
	<div class="my-cash-tab">
		<ul class="clearfix">
			<li class=""><a href="referer.php">个人收入</a></li>
			<i class="line1"></i>
			<li><a href="/xia.php">邀请收入</a></li>
			<li class="spc active"><a href="/txlist.php">提现记录</a></li>
		</ul>
		 
	</div>
    
 <?php
$row_tx=$mysql->query("select * from `txdata` where `uid`='{$session['id']}' order by `id` desc");
if($row_tx){
foreach($row_tx as $v_tx){
$time=date("Y-m-d H:i",$v_tx['time']);
if($v_tx['state']==1){
	$state='<font color=green>已支付</font>';
}elseif($v_tx['state']==2){
	$state='<font color=red>支付失败</font>';
}else{
	$state='<font color=blue>审核中</font>';
}?>
 <section class="my-allow-projects">
	<div class="my-projects-title">
		<p class="p1 clearfix">
			<span class="bar"></span>
		 
			<span class="state"><?=$state?></span>
		</p>
		
	</div>
	<ul class="clearfix">
		<li class="l1">
			
			<p><?=$time?> 提现<?=$v_tx['money']?> 元</p>
		</li>
	</ul>
</section>
 <?php
 }
  }
 else{?>  
 <div id="projectlist">
			<div class="no-project">
		<!-- 无项目 -->
		<section class="my-no-project">
			<img src="https://s1.lantouzi.com/img/cashPlan/empty.png">
			<p class="empty-hint">「你还没有提现记录」</p>
		</section>
	</div>
</div>
  <?php }?>  
<script>
	(function () {
		setTimeout(function(){
		$('#g-footer').addClass('show');
		},1000);
	})();
</script>
<footer class="g-footer" id="g-footer">
	<p>客服QQ：<?php echo $config['qqkf']?>（9:00-22:00）</p>
	<p><i class="iconfont">&#xe605;</i> 您的收入安全由阳光保险承保</p>
	 
</footer>
<div style="display: none;">
</div>
</div>
</body>